﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace famails.App_Code.source.dto
{
    public class CM_OrderDTO
    {
        public decimal OrderID { get; set; }
        public decimal Amount { get; set; }
        public DateTime OrderDate { get; set; }
        public DateTime DeliveryDate { get; set; }
        public string Payment { get; set; }
        public string Delivery { get; set; }
        public decimal CustomerID { get; set; }
        public string Status { get; set; }
        public int createBy { get; set; }

        public string CustomerName { get; set; }

        public decimal Deposit { get; set; }

        public string OrderCode { get; set; }

        public string DeliveryCode { get; set; }
        public decimal DeliveryFee { get; set; }

        public string Note { get; set; }

        public List<CM_OrderDetailDTO> Items { get; set; }

        public decimal RealAmount { get { return Amount + DeliveryFee - Deposit - DiscountAmount; } }
        public string RecieverName { get; set; }
        public string RecieverPhone { get; set; }
        public string RecieverAddress { get; set; }

        public decimal DiscountValue { get; set; }
        public string DiscountCode { get; set; }
        public int Fix0_Per1 { get; set; }
        public decimal MinAmount { get; set; }

        public bool Reciever { get; set; }

        public decimal DiscountAmount { get; set; }
    }
}